package com.tech.resource.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sl
 */
@RestController
public class ResourceController {

    /**
     * 普通用户和管理员都能访问
     * @return
     */
    @RequestMapping("/resource")
    public String commonResource(){
        return "get common resource success!!";
    }

    /**
     * 管理员权限才可访问
     * @return
     */
    @RequestMapping("/audit")
    public String audit(){
        return "audit success !!";
    }
}
